package com.daily.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.daily.dao.StudentsDao;
import com.daily.entity.Ectur;
import com.daily.entity.Hobbys;
import com.daily.entity.Rang;
import com.daily.entity.Students;

@Service
public class StudentsServiceImpl implements StudentsService {

  @Autowired
  private StudentsDao studentsDao;

  @Override
  public List<Students> getlist() {
    return studentsDao.getlist();
  }

  @Override
  public Students getstu(int sid) {
    return studentsDao.getstu(sid);
  }

  @Override
  public List<Hobbys> selecthobby() {
    return studentsDao.selecthobby();
  }

  @Override
  public List<Ectur> selectectur() {
    return studentsDao.selectectur();
  }

  @Override
  public List<Rang> selectrang() {
    return studentsDao.selectrang();
  }

  @Override
  public boolean deletebyids(String sid) {
    return studentsDao.deletebyids(sid);
  }

  @Override
  public boolean addstudent(Students stu) {
    return studentsDao.addstudent(stu);
  }

  @Override
  public boolean updatestudent(Students stu) {
    return studentsDao.updatestudent(stu);
  }
}
